package com.yao.client;

import com.yao.auth.bean.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "order",url = "http://localhost:8081")
public interface OrderClient {

    @RequestMapping("/order/{orderId}")
    public R getOrder(@PathVariable String orderId);
}
